Skip to content

Conversation

rogerso
Copy link

@rogerso rogerso commented Sep 11, 2024

This PR fixes the issue where handleWindowKeydown() is called more than once in nested <Popover>, as each <PopoverPanel> has its own <svelte:window> with an on:keydown handler. The added event.stopImmediatePropagation() makes sure only one handler is called for the same keydown event.

This fixes #180.

Copy link

vercel bot commented Sep 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-headlessui-kf6d ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 0:14am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect tab key behavior in nested Popover
1 participant